import request from '@/utils/request'

// 创建分润明细
export function createAppShareBenefitDetail(data) {
  return request({
    url: '/pekingfish/app-share-benefit-detail/create',
    method: 'post',
    data: data
  })
}

// 更新分润明细
export function updateAppShareBenefitDetail(data) {
  return request({
    url: '/pekingfish/app-share-benefit-detail/update',
    method: 'put',
    data: data
  })
}

// 删除分润明细
export function deleteAppShareBenefitDetail(id) {
  return request({
    url: '/pekingfish/app-share-benefit-detail/delete?id=' + id,
    method: 'delete'
  })
}

// 获得分润明细
export function getAppShareBenefitDetail(id) {
  return request({
    url: '/pekingfish/app-share-benefit-detail/get?id=' + id,
    method: 'get'
  })
}

// 获得分润明细分页
export function getAppShareBenefitDetailPage(query) {
  return request({
    url: '/pekingfish/app-share-benefit-detail/page',
    method: 'get',
    params: query
  })
}

// 导出分润明细 Excel
export function exportAppShareBenefitDetailExcel(query) {
  return request({
    url: '/pekingfish/app-share-benefit-detail/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
